Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify various aspects of xmlNamespace traits #643

Merged
merged 1 commit into from
Dec 1, 2020
Merged

Conversation

mtdowling
Copy link
Member

  • The xmlNamespace trait can only be applied to simple types, list,
    map, set, structure, union, and service shapes. We previously
    allowed "*", but that includes resource and operation shapes where
    the trait isn't actually used.
  • aws.protocols#awsQuery and aws.protocols#ec2Query protocol traits
    both now require that an xmlNamespace is set on the top-level
    service shape they are applied to so that the namespace is
    guaranteed to be known.
  • Added various examples for how the xmlNamespace trait interacts
    with flattened lists and maps.
  • Add a protocol test suite named "restXmlWithNamespace" to test that
    implementations add an xmlns to restXml services when necessary,
    closing Missing protocol test for xmlnamespace-trait applied on service shape #616

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

* The xmlNamespace trait can only be applied to simple types, list,
  map, set, structure, union, member, and service shapes. We previously
  allowed "*", but that includes resource and operation shapes where
  the trait isn't actually used.
* aws.protocols#awsQuery and aws.protocols#ec2Query protocol traits
  both now require that an xmlNamespace is set on the top-level
  service shape they are applied to so that the namespace is
  guaranteed to be known.
* Added various examples for how the xmlNamespace trait interacts
  with flattened lists and maps.
* Add a protocol test suite named "restXmlWithNamespace" to test that
  implementations add an xmlns to restXml services when necessary,
  closing #616
@mtdowling mtdowling merged commit 3482e88 into master Dec 1, 2020
@mtdowling mtdowling deleted the xmlns-details branch December 11, 2020 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants